from sanic import Sanic
from sanic_jinja2 import SanicJinja2

# 获取app实例
app = Sanic.get_app()

# 配置信息
config = app.config
# print(app.config)

# 模板引擎
view = SanicJinja2(app)